package com.cb.eureka.client.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class ProcessService {
	@Value("${server.port}")
    private String port;
	
	
	public String process(String name){
		 String rtn = "hi "+name+",i am from port:" +port;
		 return rtn;
	}
	
	public String processFallback(){
		return "i am from port:" +port+",i have a error";
	}
}
